package com.sharding.mapper;

import com.sharding.entity.Account;
import com.sharding.entity.Goods;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * Desc:
 * Date:    2023/2/27
 *
 * @author WanYangWei
 */
@Mapper
public interface GoodsRepository {
    int save(Goods goods);
    List<Goods> selectAll();
    Goods selectById(Long id);
    List<Goods> selectByCreateTime(String createTime);
    List<Goods> rangeByCreateTime(Map param);

    int updateById(Goods goodsInfo);
}
